<template>
  <div data-reactroot="">

    <!-- 顶栏 -->
    <top-long-bar></top-long-bar>

    <!-- 左侧边栏 -->
    <left-side-bar @show-chart-box="showChartsBox" @show-goodsmanage-box="showGoodsManageBox"></left-side-bar>

    <!-- 首页用图表框 -->
    <index-right-chart-box v-if="isSelected==1"></index-right-chart-box>

    <!-- 商品管理界面 -->
    <goods-manage-box v-if="isSelected==2"></goods-manage-box>
  </div>
</template>

<script>
module.exports = {
  data() {
    return {
      isSelected: 1,
    }
  },
  methods: {
    showChartsBox(boxId) {
      this.isSelected = boxId;
    },
    showGoodsManageBox(boxId) {
      this.isSelected = boxId;
    }
  }
}
</script>

<style>

</style>
